public CcgMembersController() { _service = new CcgMembersService(base.unitOfWork); _photoService = new MemberPhotoService(base.unitOfWork); _phoneCallService = new PhoneCallService(base.unitOfWork); _ccgService = new CCGService(base.unitOfWork); }
public static bool DoesUserHavePhoto(string userId) { if (string.IsNullOrEmpty(userId)) { return(false); } using (var unitOfwork = new UnitOfWork()) { var service = new MemberPhotoService(unitOfwork); return(service.DoesMemberHavePhoto(null, userId)); } }
public MemberPhotoController() { _service = new MemberPhotoService(base.unitOfWork); }