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)); }
public bool TableCoffeesAdd([FromBody] TableCoffeesAdd Requets) { return(_tableCoffeesService.TableCoffeesAdd(Requets)); }