public AccountManage Add(AccountManageView view) { var entity = view.ConvertToEntity(); Repository.Insert(entity); return(entity); }
public void DelleteAccountManage(AccountManageView views) { var list = this.Repository.Entities.Where(a => a.Id == views.Id).FirstOrDefault(); if (list != null) { list.Id = views.Id; list.IsDeleted = views.IsDeleted; list.AccountName = views.AccountName; list.AccountDescription = views.AccountDescription; list.AccountLogo = views.AccountLogoPath; list.QrCode = views.QrCodePath; this.Repository.Update(list); } }