Esempio n. 1
0
 public bool AddInternalStackHolders(Int64 Id, AddInternalStackHolder obj)
 {
     using (SqlCommand sqlCommand = new SqlCommand())
     {
         sqlCommand.CommandType = CommandType.StoredProcedure;
         sqlCommand.CommandText = Procedures.AddInternalStackHolder;
         sqlCommand.Parameters.AddWithValue("@UserId", Id);
         sqlCommand.Parameters.AddWithValue("@InternalStakeholderId", obj.InternalStakeholdersId);
         sqlCommand.Parameters.AddWithValue("@Name", obj.Name);
         sqlCommand.Parameters.AddWithValue("@IsActive", obj.Status);
         sqlCommand.Parameters.AddWithValue("@Emailid", obj.Emailid);
         sqlCommand.Parameters.AddWithValue("@OrgName", obj.OrgName);
         sqlCommand.Parameters.AddWithValue("@Designation", obj.Designation);
         return(Convert.ToBoolean(DAL.ExecuteNonQuery(ConfigurationHelper.connectionString, sqlCommand)));
     }
 }
Esempio n. 2
0
        public IHttpActionResult AddInternalStackholder(Int64 Id, AddInternalStackHolder obj)
        {
            InternalStackHolderBusinessService objISB = new InternalStackHolderBusinessService();

            return(Ok(objISB.AddInternalStackHolder(Id, obj)));
        }
 public bool AddInternalStackHolder(Int64 Id, AddInternalStackHolder obj)
 {
     return(objISH.AddInternalStackHolders(Id, obj));
 }