public ActionResult AddFile() { var files = Request.Files; if (files.Count <= 0) { return(RedirectToAction("Error")); } var add = _service.AddFileLog(files); return(add ? RedirectToAction("Index") : RedirectToAction("Error")); }