public IHttpActionResult GetKindByName(string kind)
 {
     try
     {
         return(Ok(KindsBL.GetKindByName(kind)));
     }
     catch
     {
         return(NotFound());
     }
 }
 public IHttpActionResult GetKindById(int kind)
 {
     try
     {
         return(Ok(KindsBL.GetKindById(kind)));
     }
     catch
     {
         return(NotFound());
     }
 }
 // DELETE: api/Kinds/5
 public IHttpActionResult Delete(Kinds1 kind)
 {
     try
     {
         KindsBL.DeleteKind(kind);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(Conflict());
     }
 }
 public IHttpActionResult Put([FromBody] Kinds1 kind)
 {
     try
     {
         KindsBL.UpdateKind(kind);
         return(Ok());
     }
     catch
     {
         return(NotFound());
     }
 }
 // POST: api/Kinds
 public IHttpActionResult Post([FromBody] Kinds1 kind)
 {
     try
     {
         KindsBL.AddKind(kind);
         return(Ok());
     }
     catch
     {
         return(Conflict());
     }
 }
 //GetAllKinds
 public IHttpActionResult GetAllKinds()
 {
     return(Ok(KindsBL.GetAllKinds()));
 }