Table
Hello. After adding the data to the table, I send it to the controller with ajax. I need to add a picture for each data. Normally it is possible to do this with HttpPostedFileBase, but I cannot send 2 different data with ajax. 3 pictures or pdf format document that I have selected together with other data I want to send and attach to the controllers. Thanks now.
public ActionResult Create(List offersdata, HttpPostedFileBase Document)
{
foreach (var item in offersdata)
{
Assignment assignment = assignmentManager.Find(x => x.AssignmentNummer == item.AssignmentNr);
assignment.StatusId = 6;
assignmentManager.Update(assignment);
item.CreatedOn = DateTime.Now;
item.StatusId = 1;
item.UserId = 1;
item.ModifiedOn = DateTime.Now;
item.IsAccepted = false;
rofManager.Insert(item);
}
return Json(new { result = true }, JsonRequestBehavior.AllowGet);
}