// GET: Condominiums/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Condominium condominiumDomainModel = _condominiumRepo.Delete(new int[] { id.Value }).FirstOrDefault();

            if (condominiumDomainModel == null)
            {
                return(HttpNotFound());
            }
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public void Delete(int id)
 {
     _condominiumRepository.Delete(id);
 }