public IHttpActionResult Post(CatRequestModel model) { if (model != null) { model.Id = catsData.Count + 1; catsData.Add(model); } return Ok(model.Id); }
public IHttpActionResult Post(CatRequestModel model) { if (model != null) { model.Id = catsData.Count + 1; catsData.Add(model); } return(Ok(model.Id)); }