예제 #1
0
 private static Department ToModel(DataRow row)
 {
     Department department = new Department();
     department.Id = (Guid)row["Id"];
     department.Name = (string)row["Name"];
     return department;
 }
예제 #2
0
 public static void Delete(Department department)
 {
     SqlHelper.ExcuteNonQuery("update T_Department set IsStopped=1 where Id=@Id",
                               new SqlParameter("@Id",department.Id));
                                       
 }