public DeleteSubject ( IdDto idToDelete ) : |
||
idToDelete | IdDto | The identifier. |
Результат |
public ResultDto DeleteSubject(IdDto idToDelete)
{
this.SetResponseHeaderCacheExpiration();
AccountPassword credentials = this.GetCredentialsFromRequest();
AccountServerService accountService = new AccountServerService();
Guid accountId = accountService.GetAccountId(credentials.Account);
SubjectServerService service = new SubjectServerService();
return service.DeleteSubject(idToDelete.Id, accountId);
}