-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathN_materias.cs
36 lines (31 loc) · 902 Bytes
/
N_materias.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using CapaDatos;
using CapaEntidades;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapaNegocios {
public class N_materias {
readonly static D_Materias d_materias = new D_Materias();
public static void Nueva(Materias materias) {
try {
d_materias.Nueva(materias);
}
catch (Exception ex) {
throw new Exception(ex.Message);
}
}
public static void Modificar(Materias materias) {
try {
d_materias.Modificar(materias);
}
catch (Exception ex) {
throw new Exception(ex.Message);
}
}
public static List<Materias> GetMaterias(string nombre) {
return d_materias.GetMaterias(nombre);
}
}
}