예제 #1
0
        public async Task <ActionResult> Delete(Guid uuid)
        {
            try
            {
                Guid userUuid = _controllerHelper.GetRequestingUser(this).Uuid;
                await _datepickerLogic.Delete(uuid, userUuid);

                return(Ok());
            }
            catch (Exception e)
            {
                _logLogic.Log(e);
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }
        }
예제 #2
0
        public void DeleteTest()
        {
            var datepicker = new TestDatepickerDto().DatepickerNoUsers;

            Assert.DoesNotThrowAsync(() => _datepickerLogic.Delete(datepicker.Uuid, new TestUser().User.Uuid));
        }