Beispiel #1
0
        public async Task <ApiResponse> Delete(long id)
        {
            try
            {
                await _tenantStore.DeleteById(id);

                return(new ApiResponse(Status200OK, "Soft Delete Tenant"));
            }
            catch (InvalidDataException dataException)
            {
                return(new ApiResponse(Status400BadRequest, "Failed to update Tenant"));
            }
        }