public async Task <bool> Modify(int _id, SupplierBranchModel _model) { SupplierBranch entity = await svcSupplierBranch.GetDetail(_id); if (entity == null) { return(false); } entity = iMapper.Map(_model, entity); return(await svcSupplierBranch.Modify(entity)); }
public async Task <int> Add(SupplierBranchModel _model) { SupplierBranch entity = iMapper.Map <SupplierBranch>(_model); return(await svcSupplierBranch.Add(entity)); }