Exemplo n.º 1
0
        public HttpResponseMessage Put(GenderDTO accessTypeDTO)
        {
            GenderDTO dto = service.updateGender(accessTypeDTO);

            if (dto != null)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, dto));
            }
            else
            {
                return(Request.CreateErrorResponse(HttpStatusCode.SeeOther, sysLanguage.CompanyTitlesControllerStrings.update_title));
            }
        }