示例#1
0
        public LoggedUserDto Logout()
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_userAppService.Logout(token));
        }
示例#2
0
        public DeviceOutputDto RegisterDevice(DeviceInputDto device)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_deviceAppService.RegisterDevice(token, device));
        }
示例#3
0
        public List <UserSignUpDtoOutput> GetUsers()
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_userAppService.GetAllUsers(token));
        }
示例#4
0
        public UserSignUpDtoOutput BlockUser(int id)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_userAppService.BlockUser(token, id));
        }
示例#5
0
        public void DeleteDamage(int id)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            _damageAppService.DeleteDamage(token, id);
        }
示例#6
0
        public List <ActionDto> GetActions()
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_userAppService.GetActionsOf(token));
        }
示例#7
0
        public DamageReportCompleteOutputDto ModifyDamageReport(int id, ModifyDamageReportDto modifiedDamage)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.ModifyDamageReport(token, id, modifiedDamage));
        }
示例#8
0
        public DamageReportCompleteOutputDto RepairDamage(DamageReportRepairDto damage)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.RepairDamage(token, damage));
        }
示例#9
0
        public List <DamageReportOutputDto> GetDamageReportsWithPriority([FromUri] DamageReportPriorityDto priority)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.GetWithPriority(token, priority));
        }
示例#10
0
        public List <DamageReportOutputDto> GetDamageReports()
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.GetAll(token));
        }
示例#11
0
        public List <DamageReportOutputDto> GetDamageReportsRepairedByUser(int id)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.GetReportsRepairedByUser(token, id));
        }
示例#12
0
        public List <DamageReportOutputDto> GetDamageReportsOfUser(int id)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.GetAllOf(id, token));
        }
示例#13
0
        public DamageReportCompleteOutputDto GetDamageReport(int id)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.Get(id, token));
        }