internal static DAL.DTO.Rol ConvertToDAL(DTO.Rol item) { DAL.DTO.Rol rol = null; if (item != null) { rol = new DAL.DTO.Rol { Id = (int)item.rol, Nombre = item.Nombre, }; } return(rol); }
internal static DTO.Rol ConvertToBL(DAL.DTO.Rol item) { DTO.Rol rol = null; if (item != null) { rol = new DTO.Rol { rol = (Model.BL.DTO.Enums.Tipo_Rol)Enum.Parse(typeof(Model.BL.DTO.Enums.Tipo_Rol), item.Id.ToString()), Nombre = item.Nombre, }; } return(rol); }