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