예제 #1
0
        public async Task <bool> DeleteUserFromTeam(long id)
        {
            bool flag = false;

            string uri = "api/user/DeleteUserFromTeam/" + id;

            flag = await httpServices.Delete(uri);

            return(flag);
        }
예제 #2
0
        public async Task <bool> DeleteCurrency(long id)
        {
            string uri = "api/currency/deletecurrency/";

            var DeleteCurrencyResult = await httpServices.Delete(uri + id);

            if (DeleteCurrencyResult == false)
            {
                throw new Exception("sikertelen törlés!");
            }

            return(true);
        }
예제 #3
0
        public async Task <bool> DeleteTeam(long id)
        {
            string uri = "api/team/DeleteTeam/";

            var deleteTeam = await httpServices.Delete(uri + id);

            if (deleteTeam == false)
            {
                throw new Exception("Sikertelen törlés");
            }

            return(deleteTeam);
        }
예제 #4
0
        public async Task <bool> DeleteTodo(long id)
        {
            string uri = "api/todo/deletetodo/";

            var deleteTodoFromDb = await httpServices.Delete(uri + id);

            if (deleteTodoFromDb == false)
            {
                throw new Exception("The deletion was falied");
            }

            return(deleteTodoFromDb);
        }
예제 #5
0
        public async Task <bool> DeleteProject(long id)
        {
            string uri = "api/project/deleteproject/";

            var deleteProjectFromDb = await httpServices.Delete(uri + id);

            if (deleteProjectFromDb == false)
            {
                throw new Exception("Sikertelen törlés");
            }

            return(true);
        }
예제 #6
0
        public async Task <bool> DeleteRole(long id)
        {
            string uri = "api/role/deleterole/";

            var deleteRole = await httpServices.Delete(uri + id);

            if (deleteRole == false)
            {
                throw new Exception("Delete role did not successful ");
            }

            return(deleteRole);
        }
        public async Task <bool> DeleteTimerecord(long id)
        {
            string uri = "api/timerecord/DeleteTimeRecord/";

            var deleteTimeRecord = await httpServices.Delete(uri + id);

            if (deleteTimeRecord == false)
            {
                throw new Exception("Sikertelen törlés");
            }

            return(deleteTimeRecord);
        }
예제 #8
0
        public async Task <bool> DeleteClient(long id)
        {
            string uri = "api/client/deleteclient/";

            var deleteClient = await httpServices.Delete(uri + id);

            if (deleteClient == false)
            {
                throw new Exception("sikertelen törlés");
            }

            return(deleteClient);
        }
        public async Task <bool> DeletePermission(long id)
        {
            string uri = "api/permission/deletepermission/";

            var deletePermissionFromDb = await httpServices.Delete(uri + id);

            if (deletePermissionFromDb == false)
            {
                throw new Exception("Permission did not deleted!");
            }

            return(deletePermissionFromDb);
        }