public bool Delete(Kest_OptionVM entity) { KEST_OPTION accType = new KEST_OPTION { option_id = entity.option_id }; kestOptRepo.Delete(accType, entity.option_id); return(true); }
public Task <bool> DeleteAsync(Kest_OptionVM entity) { return(Task.Run <bool>(() => { KEST_OPTION accType = new KEST_OPTION { option_id = entity.option_id }; kestOptRepo.Delete(accType, entity.option_id); return true; })); }
public bool Insert(Kest_OptionVM entity) { KEST_OPTION accType = new KEST_OPTION { option_id = entity.option_id, account_code = entity.account_code, account_id = entity.account_id, account_name = entity.account_name, Disable = entity.Disable, AddedBy = entity.AddedBy, AddedOn = entity.AddedOn, UpdatedOn = entity.UpdatedOn, UpdatedBy = entity.UpdatedBy }; kestOptRepo.Add(accType); return(true); }
public Task <bool> UpdateAsync(Kest_OptionVM entity) { return(Task.Run <bool>(() => { KEST_OPTION accType = new KEST_OPTION { option_id = entity.option_id, account_code = entity.account_code, account_id = entity.account_id, account_name = entity.account_name, Disable = entity.Disable, AddedBy = entity.AddedBy, AddedOn = entity.AddedOn, UpdatedOn = entity.UpdatedOn, UpdatedBy = entity.UpdatedBy }; kestOptRepo.Update(accType, accType.option_id); return true; })); }