Beispiel #1
0
 public int Insert(ClubMembersEntity entity)
 {
     H.Core.Utility.ImageHelper ih = new Core.Utility.ImageHelper();
     entity.InDate = DateTime.Now;
     entity.InUser = WebContext.LoginUser.UserName;
     return ClubMemberFacade.InsertClubMembers(entity);
 }
 public int UpdateClubMembers(ClubMembersEntity entity)
 {
     CustomDataCommand command = DataCommandManager.CreateCustomDataCommandFromConfig("UpdateClubMembers");
     command.SetParameterValue("@SysNo", entity.SysNo);
     command.SetParameterValue("@Title", entity.Title);
     command.SetParameterValue("@SmallImageUrl", entity.SmallImageUrl);
     command.SetParameterValue("@BigImageUrl", entity.BigImageUrl);
     command.SetParameterValue("@Status", entity.Status);
     return command.ExecuteNonQuery();
 }
 public int InsertClubMembers(ClubMembersEntity entity)
 {
     CustomDataCommand command = DataCommandManager.CreateCustomDataCommandFromConfig("InsertClubMembers");
     command.SetParameterValue("@Title", entity.Title);
     command.SetParameterValue("@SmallImageUrl", entity.SmallImageUrl);
     command.SetParameterValue("@BigImageUrl", entity.BigImageUrl);
     command.SetParameterValue("@Status", entity.Status);
     command.SetParameterValue("@InUser", entity.InUser);
     command.SetParameterValue("@InDate", entity.InDate);
     object obj = command.ExecuteScalar();
     if (obj != null)
         return Convert.ToInt32(obj);
     else
         return 0;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="log"></param>
 public static int UpdateClubMembers(ClubMembersEntity entity)
 {
     return RestClient.Post<int>("ClubMemberService/UpdateClubMembers", entity);
 }
Beispiel #5
0
 public int Update(ClubMembersEntity entity)
 {
     return ClubMemberFacade.UpdateClubMembers(entity);
 }