public IHttpActionResult UpdateGender(Gender s_Gender) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _GenderService.Update(s_Gender); return(CreatedAtRoute("DefaultApi", new { id = s_Gender.GenderID }, s_Gender)); }
public IHttpActionResult Put(List <GenderDto> list) { return(Ok(_service.Update(list))); }