public JsonResult ObtenerEspaciosPorCondominio(FormCollection collection) { try { int condominio = int.Parse(collection["Condominio"].ToString()); AreasComunesDAL area = new AreasComunesDAL(); var model = area.GetAreasPorCondominio(condominio); if (model != null) { var result = new { Success = true, Message = "Succes Message", model }; return(Json(result, JsonRequestBehavior.AllowGet)); } else { var result = new { Success = false, Message = "Error Message" }; return(Json(result, JsonRequestBehavior.AllowGet)); } } catch (Exception e) { throw e; } }
public static bool Update(DTO.AreasComunesDTO myAreasComunesDTO) { bool resultado = AreasComunesDAL.Update(myAreasComunesDTO); return(resultado); }
public static bool Insert(DTO.AreasComunesDTO myAreasComunesDTO) { bool resultado = AreasComunesDAL.Insert(myAreasComunesDTO); return(resultado); }
public static bool ActivaAreasComunes(AreasComunesDTO theAreasComunesDTO) { bool respuesta = AreasComunesDAL.ActivaAreasComunes(theAreasComunesDTO); return(respuesta); }