public async override Task DeleteAsync(Customer item) { var c = new RemoteCustomer() { Id = item.Id }; db.Remove(c); logger.Debug(String.Format("Delete {0}", item.Id)); }
Customer RemoteCustomerToCustomer(RemoteCustomer rc) { return(new Customer() { Id = rc.Id, Company = rc.Company, CreateDateTime = rc.CreatedDateTime, DeletedDateTime = rc.DeletedDateTime, Email = rc.Email, IsDeleted = rc.IsDeleted, LastUpdateDateTime = rc.LastUpdateDateTime, Name = rc.Name, Notes = rc.Notes, Phone = rc.Phone, Title = rc.Title, VersionNumber = rc.VersionNumber }); }