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