Esempio n. 1
0
        // GET: Location/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null || id == 0)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var result = db.DeleteLocation((int)id, (User as CustomPrincipal).UserId, DateTime.Now);

            return(RedirectToAction("Index"));
        }
 public void DeleteById(int locationId)
 {
     LocationRepo.DeleteLocation(locationId);
 }