コード例 #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)));
        }
コード例 #2
0
        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)));
        }