public ActionResult CreateFonacot(Empleado_Fonacot model) { Fonacot fon = new Fonacot(); var response = fon.CreateFonacot(model); return(Json(response, JsonRequestBehavior.AllowGet)); }
public bool CreateFonacot(Empleado_Fonacot model) { model.Status = true; model.Saldo = model.MontoInicial; ctx.Empleado_Fonacot.Add(model); var status = ctx.SaveChanges(); return(status > 0 ? true : false); }