Beispiel #1
0
 public static object Agregar_Perfiles(SPC_GET_PERFIL_Result record)
 {
     try
     {
         using (var DB = new TPVDBEntities())
         {
             DB.SPC_SET_PERFIL(
                 null,
                 record.Perfil,
                 true);
         }
         return(new { Result = "OK", Record = record });
     }
     catch
     {
         return(new { Result = "ERROR", Message = "Ocurrió un inconveniente al momento de agregar el perfil." });
     }
 }