public IHttpActionResult Post(CowTypeVm model)
 {
     try
     {
         model.Id = Guid.NewGuid();
         _businessLogic.AddCowType(model);
         return Ok();
     }
     catch (Exception ex)
     {
         return InternalServerError(ex);
     }
 }
 public void AddCowType(CowTypeVm type)
 {
     _typeRepo.Add(Mapper.Map<CowType>(type));
     _typeRepo.Save();
 }