public string CreateTest(DTO.Test DtoTest) { DAO.Test _DaoTest = Utils.ConverObjectByJson <DAO.Test>(DtoTest); m_TestManagement.CreateTest(_DaoTest); return(string.Empty); }
public string GetTest(int Id) { DAO.Test _Test = m_TestManagement.GetTest(Id); DTO.Test _DtoTest = Utils.ConverObjectByJson <DTO.Test>(_Test); string _JsonFormat = Utils.JsonSerialize(_DtoTest); return(_JsonFormat); }
public string SaveChangeTest(DTO.Test DtoTest) { DAO.Test _DaoTest = m_TestManagement.GetTest(DtoTest.Id); _DaoTest.Name = DtoTest.Name; _DaoTest.Description = DtoTest.Description; m_TestManagement.SaveTest(_DaoTest); return(string.Empty); }