示例#1
0
 public string AddGymType(GymType objGymType)
 {
     return(DbAccess.DbAInsert("insert into tbl_gymtype VALUES ('NULL','" + objGymType.gymtypename
                               + "', '" + objGymType.createdat
                               + "', '" + objGymType.updatedat
                               + "')"));
 }
示例#2
0
 public HttpResponseMessage EditGymType([FromBody] GymType objGymType)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, objGymTypeAccess.EditGymType(objGymType)));
 }
示例#3
0
 public string EditGymType(GymType objGymType)
 {
     return(DbAccess.DbAInsert("UPDATE tbl_gymtype SET "
                               + "gymtypename='" + objGymType.gymtypename + "',"
                               + "updatedat='" + objGymType.updatedat + "' WHERE gymtypeid='" + objGymType.gymtypeid + "'"));
 }