I have a stored procedure that edits a record, the date field is with getdate()
, I'm trying to use that procedure in my controller but I get an error.
No argument corresponding to the formal parameter has been given required
and I think it might have something to do with the date
[HttpPost]
public ActionResult Edit (double id, FormCollection collection)
try{
testsp usr =db.spelegirid(id).First();
if(ModelState.IsValid){
db.insertproceso(id,collection["id,material,proceso,encargado,fechafinal"]);
}