public ActionResult Create(RequestModel rm) { try { // TODO: Add insert logic here ClientRequestForm request = new ClientRequestForm { Type = rm.Type, Fees = rm.Fees, Description = rm.Description, EndDate = rm.EndDate, StartDate = rm.StartDate, ProfileNeeded = rm.ProfileNeeded, YearsOfExperience = rm.YearsOfExperience, Requirements = rm.Requirements, }; sr.Add(request); sr.Commit(); return(RedirectToAction("Index")); } catch { return(View()); } }