Exemplo n.º 1
0
        public IDataResult <MemberDto> GetMemberDtoByEmail(string email)
        {
            var result = _memberDal.GetMemberByEmail(email);

            if (result.Count > 0)
            {
                return(new SuccessDataResult <MemberDto>(result[0]));
            }
            return(new ErrorDataResult <MemberDto>(Messages.NotFound));
        }