Beispiel #1
0
        public ActionResult Post([FromBody] InputParametersBase input)
        {
            if (input.ClientId == Guid.Empty)
            {
                return(BadRequest("Client not found"));
            }

            return(Ok(_restoreService.RestoreAsync(input.ClientId, input.BackupId)));
        }
        public ActionResult Delete([FromBody] InputParametersBase input)
        {
            if (input.ClientId == Guid.Empty || input.ClientId == null)
            {
                return(new BadRequestResult());
            }

            return(Ok(_backupService.DeleteAsync(input.BackupId, input.ClientId)));
        }