public HttpResponseMessage GetMenuObj(HttpRequestMessage request, string searchvalue)
        {
            HttpResponseMessage res = null;

            var menu = new Mpr_FintrakMenuRepository();

            appLog.InfoFormat("About to call GetFIntrakMenuOBJ(searchvalue) method.");
            mpr_FintrakMenu menuDataObj = menu.GetFIntrakMenuOBJ(searchvalue);

            appLog.InfoFormat("GetFIntrakMenuOBJ(searchvalue) method successfully called.");

            res = request.CreateResponse(HttpStatusCode.OK, menuDataObj);

            return(res);
        }
 public void Remove(int Id)
 {
     mpr_FintrakMenu p = context2.mpr_FintrakMenuSet.Find(Id); context2.mpr_FintrakMenuSet.Remove(p); context2.SaveChanges();
 }
 public void Edit(mpr_FintrakMenu b)
 {
     context2.Entry(b).State = System.Data.Entity.EntityState.Modified;
 }
 public void Add(mpr_FintrakMenu b)
 {
     context2.mpr_FintrakMenuSet.Add(b);
     context2.SaveChanges();
 }