Пример #1
0
        public async Task <JsonResult> AccountExists(PageModel <UserModel> pageModel)
        {
            bool b = await userLogic.AccountAlreadyExistsAsync(pageModel.DataModel.Account, pageModel.DataModel.Id);

            return(new JsonResult(!b));
        }
        public async Task <JsonResult> AccountExists(string name, int id)
        {
            bool b = await userLogic.AccountAlreadyExistsAsync(name, id);

            return(new JsonResult(!b));
        }