public ActionResult Add(MealModel mm) { if (Session["UserID"] != null && Session["UserType"].ToString().ToLower() == "chef") { Meal meal = new Meal() { Description = mm.Description, IsDeleted = false, Name = mm.Name, PhotoPath = null, Price = mm.Price, Stock = mm.Quantity }; mRepo.Add(meal); return(RedirectToAction("Index", "Chef")); } return(RedirectToAction("Login", "Home", new { area = "" })); }