public IHttpActionResult GetById(string id)
 {
     try
     {
         CompanyDll dll = new CompanyDll();
         return(Ok(dll.GetById(id)));
     }
     catch (Exception exception)
     {
         return(BadRequest(exception.Message));
     }
 }
 public IHttpActionResult Save([FromBody] Company company)
 {
     try
     {
         CompanyDll dll = new CompanyDll();
         dll.Save(company);
         return(Ok(ActionMessage.SaveMessage));
     }
     catch (Exception exception)
     {
         return(BadRequest(exception.Message));
     }
 }
 public IHttpActionResult Save(string id)
 {
     try
     {
         CompanyDll dll = new CompanyDll();
         dll.Delete(id);
         return(Ok(ActionMessage.DeleteMessage));
     }
     catch (Exception e)
     {
         Console.Write(e.Message);
         return(BadRequest("You can't delete this company. Please contact with system developer!"));
     }
 }