Esempio n. 1
0
        public async Task <IActionResult> Delete(int id)
        {
            string email = User.Identity.Name;

            await businessService.DeleteBusinessAsync(id, email);

            return(Ok());
        }
Esempio n. 2
0
 public async Task <IActionResult> Delete([FromRoute] string id)
 {
     return(Ok(await _businessService.DeleteBusinessAsync(id)));
 }