Ejemplo n.º 1
0
 public bool ValidateStore(tbl_Stores store)
 {
     try
     {
         if (store.Store_Id > 0)
         {
             return(dbContext.tbl_Stores.Any(x => x.Store_Name == store.Store_Name && x.Store_Id != store.Store_Id));
         }
         else
         {
             return(dbContext.tbl_Stores.Any(x => x.Store_Name == store.Store_Name));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public bool SaveStore(tbl_Stores store)
 {
     try
     {
         var result = dbContext.SP_SaveStore(store.Store_Id, store.Store_Name, store.Store_Status).ToList();
         if (result.Any())
         {
             if (result.FirstOrDefault().Result == 1)
             {
                 return(true);
             }
         }
         return(false);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 3
0
 public bool SaveStore(tbl_Stores store)
 {
     return(dl.SaveStore(store));
 }
Ejemplo n.º 4
0
 public bool ValidateStore(tbl_Stores store)
 {
     return(dl.ValidateStore(store));
 }