public IHttpActionResult DeleteById(int id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _membersService.DeleteById(id); return(Ok(id)); }