Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }