public async Task <ActionResult <int> > Post(NikEvent nikEvent) { m_context.Add(nikEvent); await m_context.SaveChangesAsync(); return(nikEvent.Id); }
public async Task CreateEvent(NikEvent nikEvent) { var response = await httpService.Post(url, nikEvent); if (!response.Success) { throw new ApplicationException(await response.GetBody()); } }