public string Update(UserSetofBook entity)
 {
     var originalEntity = this.Context.UserSetofBooks.Find(entity.Id);
     this.Context.Entry(originalEntity).CurrentValues.SetValues(entity);
     this.Context.Entry(originalEntity).State = EntityState.Modified;
     this.Commit();
     return entity.Id.ToString();
 }
 public UserSetofBookModel(UserSetofBook entity)
 {
     if (entity != null)
     {
         this.CompanyId = entity.CompanyId;
         this.Id = entity.Id;
         this.SOBId = entity.SOBId;
         this.UserId = entity.UserId;
     }
 }
 public string Update(UserSetofBook entity)
 {
     return this.repository.Update(entity);
 }
 public string Insert(UserSetofBook entity)
 {
     this.Context.UserSetofBooks.Add(entity);
     this.Commit();
     return entity.Id.ToString();
 }
 public string Insert(UserSetofBook entity)
 {
     return this.repository.Insert(entity);
 }