Exemple #1
0
        // GET: posting/Edit/5
        public ActionResult Edit(int id)
        {
            BiddingRepository repository = new BiddingRepository(this.UserId);
            //Perform the conversion and fetch the destination view model
            var profile = repository.GetBiddingDetailById(id);

            return(View(profile.Response));
        }
 public IHttpActionResult GetBiddingById([FromUri] BiddingDetailsParam param)
 {
     using (var repository = new BiddingRepository(param.UserId))
     {
         var result = repository.GetBiddingDetailById(param.biddingId);
         return(Ok(new { result.Status, data = result }));
     }
 }