public ActionResult UploadAllDocuments(IEnumerable<HttpPostedFileBase> checkDocuments)
 {
     //Let us get Id of newly created reocrd
     string _addedRecallRecordID = Request.Form["hdnRecallRecordID"];
     //If ID is not null then go ahaead
     if (_addedRecallRecordID != null)
     {
         int _recordID = 0;
         //Gather the Info
         _recordID = Convert.ToInt32(_addedRecallRecordID);
         //Get the Info from the Repository
         Cascade.Data.Repositories.MSIRecallFormRepository repository = new MSIRecallFormRepository();
         Cascade.Data.Models.MSI_RecallForm _recallForm = (from existingForm in repository.GetAll().Where(record => record.ID == _recordID)
                                                           select existingForm).First();
         _recallForm.UploadedOn = DateTime.Now;
         _recallForm.IsActive = true;
         _recallForm.UploadedBy = UserId.ToString();
         #region [[ Check Images ]]
         if (checkDocuments != null)
         {
             if (checkDocuments.Count() >= 1)
             {
                 PerformFileUploadOperation(_recallForm, checkDocuments);
             }
         }
         #endregion
         //Redirect to View Edit Form
         return RedirectToAction("Details", "Recall", new { id = _recallForm.ID });
     }
     else
     {
         //Something is wrong so go to main page
         return RedirectToAction("Index", "Recall");
     }
 }
 public JsonResult GetRecallData(int id)
 {
     MSIRecallFormRepository portRecallRepo = new MSIRecallFormRepository();
     var _portRecallData = from _portRecall in portRecallRepo.GetAll().Distinct()
                           where _portRecall.ID == id
                           select _portRecall;
     return Json(_portRecallData.SingleOrDefault(), JsonRequestBehavior.AllowGet);
 }