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