public HttpResponseMessage GetAllMemberShipStatuses()
        {
            MemberShipStatusRepository MemberShipStatuses = new MemberShipStatusRepository();
            List <MemberShipStatus>    lsMemberShipStatuses;

            lsMemberShipStatuses = MemberShipStatuses.GetMemberShipStatus();
            if (lsMemberShipStatuses.Count() > 0)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, lsMemberShipStatuses));
            }
            {
                return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Item not found"));
            }
        }
        public HttpResponseMessage GetMemberShipStatusByID(int id)
        {
            MemberShipStatusRepository ctxMemberShipStatuses = new MemberShipStatusRepository();
            MemberShipStatus           _MemberShipStatus;

            _MemberShipStatus = ctxMemberShipStatuses.GetMemberShipStatus().FirstOrDefault(x => x.MembershipstatusID == id);

            if (_MemberShipStatus != null)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, _MemberShipStatus));
            }
            {
                return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Item not found"));
            }
        }