Beispiel #1
0
        /// <summary>
        /// Gets a rent by id from db
        /// </summary>
        /// <param name="id"></param>
        /// <returns>A rent as an object</returns>
        public ActionResult Delete(string id)
        {
            ObjectId retnId = new ObjectId(id);
            Rent     rent   = RentRepository.GetRentById(retnId);

            return(View(rent));
        }