Пример #1
0
            public PendenciaTempos GetPlayInstance(dynamic data, CurrentUser user)
            {
                var construction = new PendenciaTempos(0, data.PendenciaId, user.GetSubjectId <int>(), DateTime.Now.ToTimeZone());

                construction.SetUserCreate(user.GetSubjectId <int>());
                return(construction);
            }
Пример #2
0
            public PendenciaTempos GetDefaultInstance(dynamic data, CurrentUser user)
            {
                var construction = new PendenciaTempos(data.PendenciaTemposId,
                                                       data.PendenciaId,
                                                       user.GetTenantId <int>(),
                                                       data.Inicio);

                construction.SetarFim(data.Fim);
                construction.SetarNota(data.Nota);


                return(construction);
            }