public HttpResponseMessage GetByAadhar(string aadharNumber) { MemberBL memberBL = new MemberBL(); ResponseFormat <bool> response = new ResponseFormat <bool>(); response.Data = memberBL.AadharExists(aadharNumber); if (response.Data) { response.Message = "Member Created"; response.Success = true; return(Request.CreateResponse(HttpStatusCode.OK, response)); } else { response.Message = "There Was Some Error"; response.Success = false; return(Request.CreateResponse(HttpStatusCode.OK, response)); } }