function CompleteRating(RatingList) {
        if (RatingList == "") {
            
                  ValidateEmployee("Enter your ratings");
        }
        else {
            $.ajax({
                type: "POST",
                url: '/SkillRating/RateSkills',
                data: { ratingList: RatingList },
                complete: function (result) {
                    if (result.responseText) {
                        RateSkill();
                    }
                    else {
                        ValidateEmployee("Sorry!Connection error")
                    }

                }
            });
        }
    }
//Function to post an ajax call to the controller action passing the rating value list
Function to post an ajax call to the controller action passing the rating value list
Function to post an ajax call to the controller action passing the rating value list
function CompleteRating(RatingList) {
        if (RatingList == "") {
                  ValidateEmployee("Enter your ratings");
        }
        else {
            $.ajax({
                type: "POST",
                url: '/SkillRating/RateSkills',
                data: { ratingList: RatingList },
                complete: function (result) {
                    if (result.responseText) {
                        RateSkill();
                    }
                    else {
                        ValidateEmployee("Sorry!Connection error")
                    }
                }
            });
        }
    }
function CompleteRating ( RatingList ) { if ( RatingList == "" ) { ValidateEmployee ( "Enter your ratings" ) ; } else { $ . ajax ( { type : "POST" , url : '/SkillRating/RateSkills' , data : { ratingList : RatingList } , complete : function ( result ) { if ( result . responseText ) { RateSkill ( ) ; } else { ValidateEmployee ( "Sorry!Connection error" ) } } } ) ; } }
Function to post an ajax call to the controller action passing the rating value list
Function to post an ajax call to the controller action passing the rating value list