public IActionResult Post([FromBody] SalesPersonDto dto)
 {
     try
     {
         provider.Create(dto.toDao());
         return(Ok("Salesperson created succsessfully."));
     }
     catch (Exception e)
     {
         return(BadRequest($"ERROR: {e.Message}"));
     }
 }
 public IActionResult Put(int id, [FromBody] SalesPersonDto dto)
 {
     try
     {
         provider.Update(dto.toDao());
         return(Ok("Salesperson updated successfully!"));
     }
     catch (Exception e)
     {
         return(BadRequest($"ERROR: {e.Message}"));
     }
 }