public IHttpActionResult Post(CategoryDetailsResponseModel model) { if (!this.ModelState.IsValid) { return(this.BadRequest(this.ModelState)); } var createdProjectId = this.categories.Add(model.Name); return(this.Ok(createdProjectId)); }
public IHttpActionResult Post(CategoryDetailsResponseModel model) { if (!this.ModelState.IsValid) { return this.BadRequest(this.ModelState); } var createdProjectId = this.categories.Add(model.Name); return this.Ok(createdProjectId); }