Add logging
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using AutoMapper;
|
||||
using AutoMapper.QueryableExtensions;
|
||||
using InventoryTraker.Web.Attributes;
|
||||
using InventoryTraker.Web.Core;
|
||||
using InventoryTraker.Web.Data;
|
||||
using InventoryTraker.Web.Models;
|
||||
@@ -49,6 +50,7 @@ namespace InventoryTraker.Web.Controllers
|
||||
.OrderBy(x => x.InventoryType.Name);
|
||||
}
|
||||
|
||||
[ActionLog]
|
||||
public JsonResult Add(InventoryAddForm form)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
@@ -79,6 +81,7 @@ namespace InventoryTraker.Web.Controllers
|
||||
return BetterJson(model);
|
||||
}
|
||||
|
||||
[ActionLog]
|
||||
public JsonResult Distribute(InventoryDistributeForm form)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
@@ -136,6 +139,7 @@ namespace InventoryTraker.Web.Controllers
|
||||
.ToArray());
|
||||
}
|
||||
|
||||
[ActionLog]
|
||||
public JsonResult Remove(InventoryRemoveForm form)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
|
||||
Reference in New Issue
Block a user