public async Task <IActionResult> Delete(string emailId, string driveName = null) { try { _manager.DeleteAll(emailId, driveName); return(Ok()); } catch (Exception ex) { return(ex.GetActionResult()); } }
public async Task <IActionResult> Delete(string id, string driveName = null) { try { _manager.DeleteAll(id, driveName); return(await base.DeleteEntity(id)); } catch (Exception ex) { return(ex.GetActionResult()); } }