public ActionResult AddFileInformation(FileInformationModel fileInformation)
        {
            List<string> _errList = new List<string>();
            bool _success = false;

            if (ModelState.IsValid)
            {
                try
                {
                    var ff = Mapper.Map<FileInformation>(fileInformation);
                    new FileInformationRepository().Add(Mapper.Map<FileInformation>(fileInformation));
                    _success = true;
                }
                catch (DalException e)
                {
                    _errList.Add(e.Message);
                }
                catch (Exception)
                {
                    _errList.Add("DataBase Error");
                }
            }
            else
            {
                _errList = GetModelErrors();
            }

            return Json(new
            {
                success = _success,
                error = _errList
            });
        }
 public ActionResult AddFileInformation()
 {
     var fileInformation = new FileInformationModel();
     return PartialView("AddFileInformationView", fileInformation);
 }
 public ActionResult DeleteFileInformationR(int id)
 {
     var fileInformation = new FileInformationModel() { Id = id };
     return PartialView("DeleteFileInformationView", fileInformation);
 }