public void AddResourceTest() { var repo = new ResourceRepo(); var resource = new Resource { FirstName = "Test", LastName = "Reti", EmailAddress = "*****@*****.**", IsActive = true }; repo.Add(resource); UnitOfWork.Commit(); }
/// <summary> /// Create the given user on Registry /// </summary> /// <param name="newResource">New Resource to create</param> public void AddNewResource(Resource newResource) { try { repo.Add(newResource); UnitOfWork.Commit(); } catch (Exception ex) { LogManager.Error(ex.Message); throw; } }