예제 #1
0
        // GET: Diplome/Delete/5
        public ActionResult Delete(int id)
        {
            var c = ResourcesService.GetById(id);

            ResourcesService.Delete(c);
            ResourcesService.Commit();
            return(RedirectToAction("Index"));
        }
예제 #2
0
        public async Task <IActionResult> Delete([FromRoute] int resourceId)
        {
            await resService.Delete(resourceId);

            return(Ok(new { DeletedTime = DateTime.Now }));
        }