public bool CanPostSchool(StudentDTOs studentDTOs) { var user = _userAccessService.GetUserByEmailId(studentDTOs.Email); if (user != null) { return((user.UserRole == Enums.UserRole.Admin.ToString()) ? true : false); } return(false); }
public bool CanPostSchool(StudentDTOs studentDTOs) { var user = _userAccessService.GetUserByEmailId(studentDTOs.Email); if (user != null) { return((user.UserRole == Enums.UserRole.Admin.ToString()) ? true : false); } return(false); }