Exemple #1
0
        public Result <Assignment> FindAssignmentById(string identifier, int assignmentIdentifier)
        {
            Result <Assignment> result = new Result <Assignment>();
            var assign = assignRepo.FindAssignmentByID(identifier, assignmentIdentifier);

            if (assign == null)
            {
                result.Success = false;
                result.AddMessage("Assignment could not be found");
                return(result);
            }
            result.Success = true;
            result.Payload = assign;
            return(result);
        }