public void CreateCategory(CategorySM category) { try { categoryData.CreateCategory(Map(category)); logs.LogError("Event ", "User was able to create new item ", "Class:CategoryLogic, Method:CreateCategory"); } catch (Exception P) { logs.LogError("Error ", "User was unable to create a new item ", "Class:UserLogic, Method:CreateCategory"); } }