public string AddIntroduce(IntroducesModel intro) { if (InsertIntroduces(intro.Name, intro.Img, intro.Data, intro.Describe, intro.Color)) { return("Success"); } else { return("Fail"); } }
public string UpdateIntroduce(IntroducesModel Intro) { int no = Convert.ToInt32(Intro.Id); if (EditIntroduce(no, Intro.Name, Intro.Img, Intro.Data, Intro.Describe, Intro.Color)) { return("Employee Updated"); } else { return("Invalid Employee"); } }