示例#1
0
        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));
        }
示例#2
0
 public IHttpActionResult Put(List <GenderDto> list)
 {
     return(Ok(_service.Update(list)));
 }