public ResponseModel DeleteSupplierInvestment(SupplierInvestment aObj, string currentUserId) { try { var aData = _aRepository.SelectedById(aObj.SupplierInvestmentId); aData.A_GlTransactionId = aObj.A_GlTransactionId; aData.Amount = aObj.Amount; aData.MemberName = aObj.MemberName; aData.MemberNid = aObj.MemberNid; aData.Particular = aObj.Particular; aData.ProcessStatus = aObj.ProcessStatus; aData.Reason = aObj.Reason; aData.SupplierId = aObj.SupplierId; aData.TransactionDate = aObj.TransactionDate; aData.IsActive = false; aData.IsDelete = true; aData.DeletedDate = DateTime.Now; aData.UpdatedBy = currentUserId; aData.UpdatedDate = DateTime.Now; aData.ProcessStatus = 1; aData.Particular = "Supplier Investment"; _aRepository.Update(aData); _aRepository.Save(); return(_aModel.Respons(true, "Data Deleted Successfully ")); } catch (Exception ex) { return(_aModel.Respons(false, "Sorry! Some Error Happened." + ex.Message)); } }