Ejemplo n.º 1
0
 public string getAssignedMembers(string AssigneeUserId)
 {
     try
     {
         Domain.Myfashion.Domain.TicketAssigneeStatus AssigneeMember = new Domain.Myfashion.Domain.TicketAssigneeStatus();
         AssigneeMember = objTicketAssigneeStatusRepository.getAssignedMembersByUserId(Guid.Parse(AssigneeUserId));
         return(new JavaScriptSerializer().Serialize(AssigneeMember));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Somnthing Went Wrong");
     }
 }
Ejemplo n.º 2
0
 /// <AddDrafts>
 /// Add new draft
 /// </summary>
 /// <param name="d">Set Values in a Draft Class Property and Pass the Object of Draft Class (SocioBoard.Domain.Draft).</param>
 public void Add(Domain.Myfashion.Domain.TicketAssigneeStatus _TicketAssigneeStatus)
 {
     //Creates a database connection and opens up a session
     using (NHibernate.ISession session = SessionFactory.GetNewSession())
     {
         //Begin session trasaction and opens up.
         using (NHibernate.ITransaction transaction = session.BeginTransaction())
         {
             //Proceed action , to save data.
             session.Save(_TicketAssigneeStatus);
             transaction.Commit();
         } //End transaction
     }     //End session
 }
 public string AddTicketAssigneeStatus(Guid AssignedUserId)
 {
     try
     {
         if (!objTicketAssigneeStatusRepository.IsAssigneeUserIdExist(AssignedUserId))
         {
             Domain.Myfashion.Domain.TicketAssigneeStatus objTicketAssigneeStatus = new Domain.Myfashion.Domain.TicketAssigneeStatus();
             objTicketAssigneeStatus.Id = Guid.NewGuid();
             objTicketAssigneeStatus.AssigneeUserId = AssignedUserId;
             objTicketAssigneeStatus.AssignedTicketCount = 0;
             objTicketAssigneeStatusRepository.Add(objTicketAssigneeStatus);
             return "Success";
         }
         else
         {
             return "failure";
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return "failure";
     }
 }
Ejemplo n.º 4
0
 public string AddTicketAssigneeStatus(Guid AssignedUserId)
 {
     try
     {
         if (!objTicketAssigneeStatusRepository.IsAssigneeUserIdExist(AssignedUserId))
         {
             Domain.Myfashion.Domain.TicketAssigneeStatus objTicketAssigneeStatus = new Domain.Myfashion.Domain.TicketAssigneeStatus();
             objTicketAssigneeStatus.Id                  = Guid.NewGuid();
             objTicketAssigneeStatus.AssigneeUserId      = AssignedUserId;
             objTicketAssigneeStatus.AssignedTicketCount = 0;
             objTicketAssigneeStatusRepository.Add(objTicketAssigneeStatus);
             return("Success");
         }
         else
         {
             return("failure");
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("failure");
     }
 }
        public string getAssignedMembers(string AssigneeUserId)
        {
            try
            {
                Domain.Myfashion.Domain.TicketAssigneeStatus AssigneeMember = new Domain.Myfashion.Domain.TicketAssigneeStatus();
                AssigneeMember = objTicketAssigneeStatusRepository.getAssignedMembersByUserId(Guid.Parse(AssigneeUserId));
                return new JavaScriptSerializer().Serialize(AssigneeMember);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
                return "Somnthing Went Wrong";
            }

        }