public LoggedUserDto Logout() { string token = Utillities.GetTokenFromRequest(Request); return(_userAppService.Logout(token)); }
public DeviceOutputDto RegisterDevice(DeviceInputDto device) { string token = Utillities.GetTokenFromRequest(Request); return(_deviceAppService.RegisterDevice(token, device)); }
public List <UserSignUpDtoOutput> GetUsers() { string token = Utillities.GetTokenFromRequest(Request); return(_userAppService.GetAllUsers(token)); }
public UserSignUpDtoOutput BlockUser(int id) { string token = Utillities.GetTokenFromRequest(Request); return(_userAppService.BlockUser(token, id)); }
public void DeleteDamage(int id) { string token = Utillities.GetTokenFromRequest(Request); _damageAppService.DeleteDamage(token, id); }
public List <ActionDto> GetActions() { string token = Utillities.GetTokenFromRequest(Request); return(_userAppService.GetActionsOf(token)); }
public DamageReportCompleteOutputDto ModifyDamageReport(int id, ModifyDamageReportDto modifiedDamage) { string token = Utillities.GetTokenFromRequest(Request); return(_damageAppService.ModifyDamageReport(token, id, modifiedDamage)); }
public DamageReportCompleteOutputDto RepairDamage(DamageReportRepairDto damage) { string token = Utillities.GetTokenFromRequest(Request); return(_damageAppService.RepairDamage(token, damage)); }
public List <DamageReportOutputDto> GetDamageReportsWithPriority([FromUri] DamageReportPriorityDto priority) { string token = Utillities.GetTokenFromRequest(Request); return(_damageAppService.GetWithPriority(token, priority)); }
public List <DamageReportOutputDto> GetDamageReports() { string token = Utillities.GetTokenFromRequest(Request); return(_damageAppService.GetAll(token)); }
public List <DamageReportOutputDto> GetDamageReportsRepairedByUser(int id) { string token = Utillities.GetTokenFromRequest(Request); return(_damageAppService.GetReportsRepairedByUser(token, id)); }
public List <DamageReportOutputDto> GetDamageReportsOfUser(int id) { string token = Utillities.GetTokenFromRequest(Request); return(_damageAppService.GetAllOf(id, token)); }
public DamageReportCompleteOutputDto GetDamageReport(int id) { string token = Utillities.GetTokenFromRequest(Request); return(_damageAppService.Get(id, token)); }