Esempio n. 1
0
        public bool TableCoffeesAdd(TableCoffeesAdd Requets)
        {
            try
            {
                DynamicParameters parameters = new DynamicParameters();
                parameters.Add("@AreaID", Requets.AreaID);
                parameters.Add("@Name", Requets.Name);

                SqlMapper.Execute(con, "TableCoffees_Add", param: parameters, commandType: CommandType.StoredProcedure);
                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public bool TableCoffeesAdd(TableCoffeesAdd Requets)
 {
     return(_tableCoffeesRepository.TableCoffeesAdd(Requets));
 }
Esempio n. 3
0
 public bool TableCoffeesAdd([FromBody] TableCoffeesAdd Requets)
 {
     return(_tableCoffeesService.TableCoffeesAdd(Requets));
 }