Exemplo n.º 1
0
    protected string save_Lab(string guid, string head_id, string result, string replay, string files)
    {
        Inspect lab = new Inspect();

        if (string.IsNullOrEmpty(guid))
        {
            guid = Guid.NewGuid().ToString();


            lab.Add(guid, head_id, CurrentUser.ID, result, replay, files);
        }
        else
        {
            lab.Update(guid, CurrentUser.ID, result, replay, files);
        }
        return(guid);
    }