Exemplo n.º 1
0
        public async Task <ActionResult <int> > Post(NikEvent nikEvent)
        {
            m_context.Add(nikEvent);
            await m_context.SaveChangesAsync();

            return(nikEvent.Id);
        }
Exemplo n.º 2
0
        public async Task CreateEvent(NikEvent nikEvent)
        {
            var response = await httpService.Post(url, nikEvent);

            if (!response.Success)
            {
                throw new ApplicationException(await response.GetBody());
            }
        }