Ejemplo n.º 1
0
 public IHttpActionResult Put([FromBody] RequestClassMatch RequestClassMatch)
 {
     if (RequestClassMatch.ModelID == "")
     {
         return(BadRequest("Invalid Application Role ID data.")); // return Request.CreateResponse(HttpStatusCode.BadRequest, "Group ID Can not be blank");
     }
     return(CheckActionResult(_action.EditObj(RequestClassMatch)));
 }
Ejemplo n.º 2
0
 protected void btnRequest_Click(object sender, EventArgs e)
 {
     var parameter = new RequestClassMatch()
     {
         Operate     = "Add", //"formInformation",
         UserID      = WorkingProfile.UserId,
         IDs         = hfIDs.Value,
         SchoolYear  = WorkingProfile.SchoolYear,
         SchoolCode  = ddlSchool.SelectedValue,
         AppID       = ddlApps.SelectedValue,
         ModelID     = ddlModel.SelectedValue,
         StaffUserID = TextUserID.Text,
         UserRole    = TextUserRole.Text,
         Semester    = ddlSemester.SelectedValue,
         Term        = ddlTerm.SelectedValue,
         MatchType   = ddlMatchType.SelectedValue,
         MatchValue  = ddlMatchValue.SelectedValue,
         StartDate   = dateStart.Value,
         EndDate     = dateEnd.Value,
         Comments    = TextComments.Text
     };
     var result = ManageFormSave <RequestClassMatch> .SaveFormContent("Add", "RequestClassMatch", parameter);
 }