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