public ActionResult ApplicationLetter(ApplicationLetterModel model) { string error = string.Empty; if (ValidateModel(model)) { EmploymentBl.ProcessSaving(model, out error); } return View(model); }
protected bool ValidateModel(ApplicationLetterModel model) { ValidateFileLength(model.ApplicationLetterScanFile, "ApplicationLetterScanFile", 2); return ModelState.IsValid; }