예제 #1
0
        public async Task <ActionResult <ExpensesManagerInformation> > PostExpensesManagerInformation(ExpensesManagerInformation expensesManagerInformation)
        {
            if (Request.Cookies.Keys.Contains("token"))
            {
                this.service.cookie = Request.Cookies["token"];
            }
            else
            {
                this.service.cookie = null;
            }
            await service.Add(expensesManagerInformation);

            return(NoContent());
        }
        public async Task <ActionResult <ExpensesManagerInformation> > PostExpensesManagerInformation(ExpensesManagerInformation expensesManagerInformation)
        {
            await service.Add(expensesManagerInformation);

            return(NoContent());
        }