public void TcCreateGroup() { Group newGroup = new Group(); newGroup.Name = "TEST"; newGroup.Descriptions = "Group Test for Test Case"; newGroup.Created = DateTime.Now; Assert.AreEqual(_provider.createGroup(newGroup), false); }
public ActionResult CreatePGroup(Group newGroup) { try { return(Json(new { success = _provider.createGroup(newGroup) })); } catch (Exception ex) { return(Json(new { success = false, content = ex.Message.ToString() })); } }