예제 #1
0
        public async Task <HttpResponseMessage> AddBeneficiary(LCBeneficiary Beneficiary)
        {
            try
            {
                if (Beneficiary == null)
                {
                    return(new HttpResponseMessage(HttpStatusCode.BadRequest));
                }

                UserDataService userDataService = new UserDataService();
                var             result          = await userDataService.AddBeneficiary_LCAsync(Beneficiary);

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, result);
                return(response);
            }
            catch (Exception ex)
            {
                return(new HttpResponseMessage(HttpStatusCode.InternalServerError));
            }
        }