예제 #1
0
파일: UserVM.cs 프로젝트: T1Easyware/Soheil
 public static User CreateNew(UserDataService dataService)
 {
     int code = dataService.GenerateCode();
     int id = dataService.AddModel(new User { Code = code, Title = "جدید" ,CreatedDate = DateTime.Now, ModifiedDate = DateTime.Now, Username = string.Empty, Password = string.Empty, Status = (byte)Status.Active});
     return dataService.GetSingle(id);
 }