Example #1
0
 public Task <ClientsBsDTO> UpdateProduct(string code, [FromBody] ClientsBsDTO clientToUpdate)
 {
     Log.Logger.Information("Client trying to Update Client: " + clientToUpdate);
     return(_clientsDB.UpdateClient(code, clientToUpdate));
 }
Example #2
0
 public ClientsBsDTO AddNewClient([FromBody] ClientsBsDTO newClientdto)
 {
     Log.Logger.Information("Client trying to Create a New Client: " + newClientdto);
     return(_clientsDB.AddNewClient(newClientdto).Result);
 }