public static int InsertScalar(Cliente newEntity) { int intNewId; ClientesDAL currentDAL = GetDAL(); intNewId = currentDAL.InsertScalar(newEntity); return(intNewId); }
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); }