public async Task <bool> DeleteGym(string id)
        {
            UserManager userManager = new UserManager();
            var         gym         = await GetById(id);

            return(await UserEntityService.Delete(id));
        }
Beispiel #2
0
        public async Task <bool> DeleteTrainer(string id)
        {
            UserManager userManager = new UserManager();
            var         trainer     = await GetById(id);

            //string trainerUserId = trainer.TrainerUser;
            await userManager.DeleteUser(id);

            return(await UserEntityService.Delete(id));
        }
 public async Task <bool> DeleteUser(string id)
 {
     return(await UserEntityService.Delete(id));
 }