Пример #1
0
        public async Task CreateAsync()
        {
            var suffix = DateTime.Now.ToString("dd.MM.yyyy_mm_HH_ss");

            var resp = await lifeEventService.CreateAsync(new UpdateLifeEventRequestDto()
            {
                LifeEvent = new LifeEventDto()
                {
                    Name      = $"LifeEventCreateTest_Name{suffix}",
                    EventDate = DateTime.Now
                }
            });

            Assert.IsTrue(resp.Messages.Count == 0);
        }
 public async Task <UpdateLifeEventResponse> Post([FromBody]  UpdateLifeEventRequest request)
 {
     return(await lifeEventService.CreateAsync(request));
 }
 public Task <UpdateLifeEventResponseDto> Post([FromBody]  UpdateLifeEventRequestDto request)
 {
     return(lifeEventService.CreateAsync(request));
 }