public int InsertarSemestre(EntidadSemestre _objSemestre) { try { return(int.Parse(_entitiesPosgrado.Sp_SemestreInsertar(_objSemestre.Descripcion, _objSemestre.Identificador, _objSemestre.Eliminado).Select(y => y.Value.ToString()).FirstOrDefault())); } catch (Exception) { return(0); } }
public int ModificarSemeste(EntidadSemestre _objSemestre) { try { _entitiesPosgrado.Sp_SemestreModificar(_objSemestre.IdSemestre, _objSemestre.Descripcion, _objSemestre.Identificador, _objSemestre.Eliminado); return(_objSemestre.IdSemestre); } catch (Exception) { return(0); } }