Exemplo n.º 1
0
        public HttpResponseMessage Delete(int Id)
        {
            bool isDeleted = service.deleteGender(Id);

            if (isDeleted)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, sysLanguage.CompanyTitlesControllerStrings.delete_title));
            }
            else
            {
                return(Request.CreateErrorResponse(HttpStatusCode.SeeOther, sysLanguage.CompanyTitlesControllerStrings.delete_titleError));
            }
        }