public IHttpActionResult AddCategory(category category1) { int result = bllService.AddCategory(category1); if (result != null) { return(Ok()); } else { return(BadRequest("Cannot add same existing category")); } }