public IActionResult SaveSalesman(SalesmanModel salesman)
 {
     try
     {
         if (_employee.SaveOrUpdateSalesman(salesman))
         {
             return(Ok(new { status = true, result = "Salesman Saved Successfully." }));
         }
         else
         {
             return(Ok(new { status = false, result = "Failed to save the salesman." }));
         }
     }
     catch (InvalidException err)
     {
         return(Ok(new { status = false, result = err.Message }));
     }
     catch (Exception err)
     {
         return(BadRequest(err.Message));
     }
 }