Esempio n. 1
0
        public IHttpActionResult Delete(int roleid)
        {
            var repository = new RepositoryRoles();
            var response   = repository.Delete(roleid);

            return(Ok <DataResponse>(response));
        }
        public IHttpActionResult DeleteRoleById(int id)
        {
            var response = new DataResponse <bool>();

            response = repository.Delete(id);
            return(Ok <DataResponse>(response));
        }