public async Task <int> Delete(DeleteSiteTypeRequest request) { var invSiteType = _autoMapper.Map <InvSiteType>(request); var resId = invSiteType.InvSiteTypeID; await _repo.DeleteAsync(invSiteType); return(resId); }
public async Task <ActionResult <int> > Delete(DeleteSiteTypeRequest request) { return(await _siteTypesLogic.Delete(request)); }