public ActionResult CreateArea(FormCollection collection) { AreaModel A = new AreaModel(); A.AreaName = collection["AName"]; A.IsActive = (collection["IsActive"] == "true"); A.ZoneId = Convert.ToInt32(collection["ZoneId"]); A.InsertArea(); return(RedirectToAction("GetAllArea")); }