예제 #1
0
        public int UpdateRole(RolesDTO data)
        {
            Role dataToUpdate = RolesRequestFormatter.ConvertRespondentInfoFromDTO(data);
            var  response     = _unitOfWork.RoleRepository.Update(dataToUpdate);

            return(response);
        }
예제 #2
0
        public RolesDTO InsertRoles(RolesDTO data)
        {
            Role dataToInsert = RolesRequestFormatter.ConvertRespondentInfoFromDTO(data);

            return(RolesRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.RoleRepository.Create(dataToInsert)));
        }