public int UpdateRole(RolesDTO data) { Role dataToUpdate = RolesRequestFormatter.ConvertRespondentInfoFromDTO(data); var response = _unitOfWork.RoleRepository.Update(dataToUpdate); return(response); }
public RolesDTO InsertRoles(RolesDTO data) { Role dataToInsert = RolesRequestFormatter.ConvertRespondentInfoFromDTO(data); return(RolesRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.RoleRepository.Create(dataToInsert))); }