public static int InsertScalar(Cliente newEntity) { int intNewId; ClientesDAL currentDAL = GetDAL(); intNewId = currentDAL.InsertScalar(newEntity); return(intNewId); }
public static List <Cliente> GetAll() { List <Cliente> returnList = new List <Cliente>(); ClientesDAL currentDAL = GetDAL(); returnList = currentDAL.GetAll(); return(returnList); }
public static List <Cliente> GetInActivos() { List <Cliente> returnList = new List <Cliente>(); ClientesDAL currentDAL = GetDAL(); returnList = currentDAL.GetByActivo(false); return(returnList); }
public static Cliente GetById(int intId) { Cliente returnEntity; ClientesDAL currentDAL = GetDAL(); returnEntity = currentDAL.GetById(intId); return(returnEntity); }
public static int InsertValid(Cliente newEntity, out string strErrores) { int intNewId = 0; ClientesDAL currentDAL = GetDAL(); if (IsValid(newEntity, out strErrores)) { intNewId = currentDAL.InsertScalar(newEntity); } return(intNewId); }