Example #1
0
        public HttpResponseMessage Get(string email)
        {
            MemberBL memberBL = new MemberBL();
            ResponseFormat <MemberRequestDTO> response = new ResponseFormat <MemberRequestDTO>();

            response.Data = memberBL.GetByEmail(email);

            if (response.Data == null)
            {
                response.Success = false;
                response.Message = "Member Not Found";
                return(Request.CreateResponse(HttpStatusCode.OK, response));
            }
            else
            {
                response.Success = true;
                response.Message = "Retrieved Successfully";
                return(Request.CreateResponse(HttpStatusCode.OK, response));
            }
        }